﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Domain.Entity
{
    public class Review
    {
        public Review()
        {
            this.Feedbacks = new HashSet<Feedback>();
        }

        [Key]
        [HiddenInput(DisplayValue = false)]
        public int Id { get; set; }

        [Required]
        public string Name { get; set; }

        [HiddenInput(DisplayValue = false)]
        public virtual Account Account { get; set; }

        [DataType(DataType.DateTime)]
        [HiddenInput(DisplayValue = false)]
        public DateTime PostedDate { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        public string Summary { get; set; }

        [HiddenInput]
        public virtual Game Game { get; set; }
        

        [Required]
        [DataType(DataType.MultilineText)]
        public string Message { get; set; }
        public virtual ICollection<Feedback> Feedbacks { get; set; }

        public string YoutubeLink { get; set; }
        public string FileName { get; set; }
    }
}
